The device-type was not added to the device details which caused
cdrom devices to appear as harddisks after a reboot.
From: Alex Brett <Alex.Brett@xensource.com>
Signed-off-by: Christian Limpach <Christian.Limpach@xensource.com>
else:
raise VmError("Device %s not connected" % devid)
+ def readFrontend(self, devid, *args):
+ return xstransact.Read(self.frontendPath(devid), *args)
def deviceIDs(self, transaction = None):
"""@return The IDs of each of the devices currently configured for
'mode')
if dev:
+ (dev_type) = self.readFrontend(devid, 'device-type')
+ if dev_type:
+ dev += ":" + dev_type
result.append(['dev', dev])
if typ and params:
result.append(['uname', typ + ":" + params])